package com.graden.background.common.enums;


/**
 * <p>
 * 功能权限枚举类
 * </p>
 *
 * @author zjf
 * @since 2019-03-21
 */
public enum OperationEnum {


	SYSTEM_USER_ADD(2,"系统管理-用户管理",2,"系统管理-用户管理",1,"新增"),
	SYSTEM_USER_ROLE(2,"系统管理-用户管理",2,"系统管理-用户管理",2,"角色设置"),
	SYSTEM_USER_ACTIVATE(2,"系统管理-用户管理",2,"系统管理-用户管理",3,"激活/禁用"),
	SYSTEM_USER_DELETE(2,"系统管理-用户管理",2,"系统管理-用户管理",4,"删除"),

	SYSTEM_ROLE_ADD(3,"系统管理-角色管理",3,"系统管理-角色管理",5,"新增"),
	SYSTEM_ROLE_EDIT(3,"系统管理-角色管理",3,"系统管理-角色管理",6,"编辑"),
	SYSTEM_ROLE_DELETE(3,"系统管理-角色管理",3,"系统管理-角色管理",7,"删除"),


	/**************************跟数据库无关,只记录,不参与到权限拦截***********************/

	LOGIN_COMMON(5,"登录模块",5,"登录模块",1001,"普通登录"),
	LOGIN_OUT(5,"登录模块",5,"登录模块",1003,"注销登录"),


	SYSTEM_USER_SEE(2,"系统管理-用户管理",2,"系统管理-用户管理",2000,"查看列表"),
	SYSTEM_USER_INFO(2,"系统管理-用户管理",2,"系统管理-用户管理",2001,"获取账号信息"),
	SYSTEM_USER_PASSWORD(2,"系统管理-用户管理",2,"系统管理-用户管理",2003,"修改密码"),

	SYSTEM_ROLE_SEE(3,"系统管理-角色管理",3,"系统管理-角色管理",3000,"查看列表"),

	SYSTEM_OPERATION_SEE(4,"系统管理-操作日志",4,"系统管理-操作日志",4000,"查看列表"),

	;



	private int menuId;
	private String menuName;
	private int lowestId;
	private String lowestName;
	private int functionId;
	private String functionName;

	OperationEnum(int menuId,String menuName, int lowestId,String lowestName,int functionId,String functionName) {
		this.menuId = menuId;
		this.menuName = menuName;
		this.lowestId = lowestId;
		this.lowestName = lowestName;
		this.functionId = functionId;
		this.functionName = functionName;
	}

	public int getMenuId() {
		return menuId;
	}

	public String getMenuName() {
		return menuName;
	}

	public int getLowestId() {
		return lowestId;
	}

	public String getLowestName() {
		return lowestName;
	}

	public int getFunctionId() {
		return functionId;
	}

	public String getFunctionName() {
		return functionName;
	}
}


